﻿#ifndef ALGOFORM_H
#define ALGOFORM_H

#include <QWidget>
#include "AiPtuStruct.h"
#include <QJsonObject>
#include <QPushButton>

namespace Ui
{
    class AlgoForm;
}

class AlgoForm : public QWidget
{
    Q_OBJECT

public:
    explicit AlgoForm(QString devType, QWidget* parent = nullptr);
    ~AlgoForm();

    void onChnInfo(QJsonObject obj);

private:
    Ui::AlgoForm* ui;
    QString m_devType;

private slots:
    void initForm();

    void modifyBtnClicked();

    void removeBtnClicked();
signals:

    void sigRealtimeImage(WsBinHeader header, QByteArray image);
    void sigAlarmImage(WsBinHeader header, QByteArray image, AlarmExtern alarmExtern);
    void sigAlgoParam(AlgoSet);//获取算法数据

    void sigGetAlgoParam(QJsonObject);
    void sigGetExternalParam(QJsonObject);
    void sigGetAlarmOut(QJsonObject);
    void sigGetZoneParam(QJsonObject);
};

#endif // ALGOFORM_H
